package wang.aweb.childcar.controller.api;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import wang.aweb.childcar.common.ApiRestResponse;
import wang.aweb.childcar.service.DeviceService;

import javax.validation.constraints.Max;
import java.util.Map;

@RestController
@RequestMapping("/api/device/")
public class UserDeviceController {
    @Autowired
    private DeviceService deviceService;
    @ApiOperation("检查imei号")
    @PostMapping("checkImei")
    public ApiRestResponse checkImei(@RequestBody Map reqMap){
        String imei=reqMap.get("imei").toString();
        deviceService.checkImei(imei);
        return ApiRestResponse.success();
    }
}
